package com.neu.carbon.wms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neu.carbon.wms.mapper.WmsDispatchBillMapper;
import com.neu.carbon.wms.domain.WmsDispatchBill;
import com.neu.carbon.wms.service.IWmsDispatchBillService;

/**
 * 车辆调度单Service业务层处理
 * 
 * @author neuedu
 * @date 2025-03-14
 */
@Service
public class WmsDispatchBillServiceImpl implements IWmsDispatchBillService 
{
    @Autowired
    private WmsDispatchBillMapper wmsDispatchBillMapper;

    /**
     * 查询车辆调度单
     * 
     * @param id 车辆调度单ID
     * @return 车辆调度单
     */
    @Override
    public WmsDispatchBill selectWmsDispatchBillById(Long id)
    {
        return wmsDispatchBillMapper.selectWmsDispatchBillById(id);
    }

    /**
     * 查询车辆调度单列表
     * 
     * @param wmsDispatchBill 车辆调度单
     * @return 车辆调度单
     */
    @Override
    public List<WmsDispatchBill> selectWmsDispatchBillList(WmsDispatchBill wmsDispatchBill)
    {
        return wmsDispatchBillMapper.selectWmsDispatchBillList(wmsDispatchBill);
    }

    /**
     * 新增车辆调度单
     * 
     * @param wmsDispatchBill 车辆调度单
     * @return 结果
     */
    @Override
    public int insertWmsDispatchBill(WmsDispatchBill wmsDispatchBill)
    {
        return wmsDispatchBillMapper.insertWmsDispatchBill(wmsDispatchBill);
    }

    /**
     * 修改车辆调度单
     * 
     * @param wmsDispatchBill 车辆调度单
     * @return 结果
     */
    @Override
    public int updateWmsDispatchBill(WmsDispatchBill wmsDispatchBill)
    {
        return wmsDispatchBillMapper.updateWmsDispatchBill(wmsDispatchBill);
    }

    /**
     * 批量删除车辆调度单
     * 
     * @param ids 需要删除的车辆调度单ID
     * @return 结果
     */
    @Override
    public int deleteWmsDispatchBillByIds(Long[] ids)
    {
        return wmsDispatchBillMapper.deleteWmsDispatchBillByIds(ids);
    }

    /**
     * 删除车辆调度单信息
     * 
     * @param id 车辆调度单ID
     * @return 结果
     */
    @Override
    public int deleteWmsDispatchBillById(Long id)
    {
        return wmsDispatchBillMapper.deleteWmsDispatchBillById(id);
    }
}
